<div id="top" class="top_fixed" class="w1200">
    <div id="top-content">
        <div class="top-item">
            <a href="/" class="logo-a iblock fl">
                <img width="124px" height="36px" class="logo" src="__CDN__/assets/index/images/logo.png" alt="设图网">
            </a>
            <input type="hidden" id="searchtype" value="shouchaobaoxiaobao">
            <div class="search-box iblock pr fl">
                <div class="icon-search css3-background-size pa"></div>
                <input type="text" class="search-input kwinput fn14 pa color-888" value="" defaultValue="搜索素材"
                       placeholder="搜索"/>
                <div class="search-button center pa goSearch">搜索</div>
            </div>
            {empty name="userinfo"}
            <div class="top-button-div button-box iblock pr fr" style="margin-right: 10px;">
                <a href="javascript:void(0);" onclick="showReg();" class="login-button top-button center iblock"
                   rel="nofollow">登录</a>
            </div>
            {else/}
            <div class="top-user-menu pr fr">
                <div class="user-face">
                    <a href="/index/user/index" rel="nofollow"><img src="{$userinfo['avatar']}"></a>
                </div>
                <div class="user-menu none" style="display: none;">
                    <div class="user-menu-div line">
                        <div class="user-menu-divright">
                            <div class="user-menu-username">{$userinfo['username']} <span class="fn12">( ID:{$userinfo['id']} )</span><span></span></div>
                            <div class="user-menu-vipinfo">
                                普通会员                </div>
                        </div>
                        <div class="user-menu-divleft"><a href="http://design.588net.com/user" rel="nofollow" style="text-indent:0px;"><img data-original="{$userinfo['avatar']}" class="lazyload" src="{$userinfo['avatar']}" style="display: inline;"></a></div>
                    </div>
                    <div class="user-menu-getvip line">
                        <a href="/index/vip/index" rel="nofollow" target="_blank">获取VIP</a>
                    </div>
                    <a href="/index/user/index" rel="nofollow" target="_blank" class="line">我的收藏</a>
                    <a href="/index/user/mydownload" rel="nofollow" target="_blank" class="line">我的下载</a>
                    <a href="/index/user/upload" rel="nofollow" class="line" style="display:none;">上传作品</a>
                    <a href="/index/user/logout" rel="nofollow">退出登录</a>
                </div>
            </div>
            {/empty}
            <div class="button-box iblock pr fr"><a href="javascript:void(0);"
                                                    class="center iblock css3-background-size click-me-open"
                                                    style="border-radius: 30px; padding:0px 10px 0px 35px;">收藏</a>
                <div class="css3-background-size click-me-collect-box">
                    <div class="click-me-collect" rel="sidebar">立即收藏</div>
                </div>
            </div>
        </div>
    </div>
</div>